-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adding CC310 entropy driver utilizing nrf_cc310_platform library #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding CC310 entropy driver utilizing nrf_cc310_platform library #1268
Conversation
|
All checks are passing now. Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
d257bdc to
43ac50a
Compare
43ac50a to
1bc448d
Compare
1bc448d to
955efe6
Compare
d877ee9 to
a1d5a53
Compare
a1d5a53 to
8adb309
Compare
bf3573b to
7fd88cc
Compare
-Adding hw_cc310 driver with RTOS mutex/abort support -Changing entropy_cc310 driver to use nrf_cc310_platform library -Changing entropy_cc310 driver to support non-secure application Signed-off-by: Frank Audun Kvamtrø <[email protected]> Signed-off-by: Torsten Rasmussen <[email protected]>
The Kconfig in zephyr/subsys/bluetooth/controller/Kconfig selects ENTROPY_NRF5_RNG when building for an nRF SoC. This collides with the alternative cc310 entropy driver causing conflicts. Therefore the cc310 entropy driver will be dependent on BT_LL_SW_LEGACY not being set. Signed-off-by: Torsten Rasmussen <[email protected]>
When building multi image including mcuboot then mcuboot is compiled with hard float, however the flags CONFIG_FLOAT and CONFIG_FP_HARDABI are not set which causes wrong linking. Therefore hw cc310 will default to yes in mcuboot until this has been corrected. This is possible, as cc310 is currently not required in mcuboot. Signed-off-by: Torsten Rasmussen <[email protected]>
7fd88cc to
25f7eb2
Compare
5d8ab6a to
e4ecdef
Compare
73ddacc to
9dfdea6
Compare
|
Hi @frkv , can you tell why it is disabled for desktop? Is there any reason we would like to have it enabled? |
When enabling cc310 on nrf desktop, we face the following issue: which indicates that MPU must be configured differently. But as first step, the cc310 is disabled in nrf desktop, as this should be identical to how nrf desktop is working without this PR. |
|
Hi @tejlmand , nrf_desktop uses the default MPU configuration from Zephyr. What we use however in the debug build is stack guard ( Pinging @ioannisg . |
9dfdea6 to
69dd0c1
Compare
Thanks for info. |
Thanks. Also is it possible that the feature would not be enabled by default? This is to make sure that currently working configurations will be fine. Apps/samples that need it can enabled it in the config. Multiple things are not enabled by default, Bluetooth included. |
If a sample requires entropy, then I would argue that we should aim for most secure way of obtaning that, and that would be to use the cc310 when it is available. |
69dd0c1 to
fd6acdb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for lwm2m_carrier changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two overlay-carrier.conf files that should be updated as well in mqtt and coap samples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
fd6acdb to
c12f03b
Compare
|
@b-gent Could have a look at docs in this PR? |
c12f03b to
0b1530f
Compare
|
If the CI is green, let us merge now and I will start reviewing the docs on my own branch today. |
|
|
strange, that worked locally |
0b1530f to
6dd78a9
Compare
Added dependency to ensure a true entropy driver is available Signed-off-by: Torsten Rasmussen <[email protected]>
Disable cc310 entropy driver for MPU enabled applications. Signed-off-by: Torsten Rasmussen <[email protected]>
6dd78a9 to
47b6a10
Compare
|
dox commit dropped, as not needed for this PR. |
-Adding hw_cc310 driver with RTOS mutex/abort support
-Changing entropy_cc310 driver to use nrf_cc310_platform library
-Changing entropy_cc310 driver to support non-secure application
Added description for:
Signed-off-by: Frank Audun Kvamtrø [email protected]
Signed-off-by: Torsten Rasmussen [email protected]